package com.hl.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 券活动与券的关联对象 coupon_activity_relation
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class CouponActivityRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 关联记录唯一ID */
    private Integer relationId;

    /** 关联的活动ID */
    @Excel(name = "关联的活动ID")
    private Integer activityId;

    /** 关联的优惠券ID */
    @Excel(name = "关联的优惠券ID")
    private String couponId;

    /** 该优惠券在活动中的发放数量（0表示无限制） */
    @Excel(name = "该优惠券在活动中的发放数量", readConverterExp = "0=表示无限制")
    private Integer issueCount;

    /** 是否启用该关联（1：启用；0：禁用） */
    @Excel(name = "是否启用该关联", readConverterExp = "1=：启用；0：禁用")
    private Integer isEnabled;

    /** 关联活动名称 */
    @Excel(name = "关联活动名称")
    private String activityName;

    /** 关联优惠劵名称 */
    @Excel(name = "关联优惠劵名称")
    private String couponName;

    /** 优惠券类型 */
    private String couponType;

    /** 优惠券金额 */
    private String amount;

    public void setRelationId(Integer relationId) 
    {
        this.relationId = relationId;
    }

    public Integer getRelationId() 
    {
        return relationId;
    }
    public void setActivityId(Integer activityId) 
    {
        this.activityId = activityId;
    }

    public Integer getActivityId() 
    {
        return activityId;
    }
    public void setCouponId(String couponId) 
    {
        this.couponId = couponId;
    }

    public String getCouponId() 
    {
        return couponId;
    }
    public void setIssueCount(Integer issueCount) 
    {
        this.issueCount = issueCount;
    }

    public Integer getIssueCount() 
    {
        return issueCount;
    }
    public void setIsEnabled(Integer isEnabled) 
    {
        this.isEnabled = isEnabled;
    }

    public Integer getIsEnabled() 
    {
        return isEnabled;
    }
    public void setActivityName(String activityName) 
    {
        this.activityName = activityName;
    }

    public String getActivityName() 
    {
        return activityName;
    }
    public void setCouponName(String couponName) 
    {
        this.couponName = couponName;
    }

    public String getCouponName() 
    {
        return couponName;
    }

    public void setCouponType(String couponType) 
    {
        this.couponType = couponType;
    }

    public String getCouponType() 
    {
        return couponType;
    }

    public void setAmount(String amount) 
    {
        this.amount = amount;
    }

    public String getAmount() 
    {
        return amount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("relationId", getRelationId())
            .append("activityId", getActivityId())
            .append("couponId", getCouponId())
            .append("issueCount", getIssueCount())
            .append("isEnabled", getIsEnabled())
            .append("activityName", getActivityName())
            .append("couponName", getCouponName())
            .append("couponType", getCouponType())
            .append("amount", getAmount())
            .toString();
    }
}
